import request from '@/utils/request.js'

// 订单确认详情
export function getOrderDetailApi(data) {
	return request.post('/?service=App.Order.OrderDetailListApi',data,{isLoading: true, isAuth: true,isForm: true})
}
// 订单截止时间
export function getOrderEndApi(data) {
	return request.post('/?service=App.Order.getOrderEndApi',data,{isLoading: true, isAuth: true,isForm: true})
}
// 折扣优惠
export function getOrderDiscountApi(data) {
	return request.post('/?service=App.Order.GetDiscountApi',data,{isLoading: true, isAuth: true,isForm: true})
}
// 订单提交
export function postOrderSaveApi(data) {
	return request.post('/?service=App.Order.orderSaveCartApi',data,{isLoading: true, isAuth: true,isForm: true})
}
// 支付
export function postOrderPayApi(data) {
	return request.post('/?service=App.Pay.PayDopaymentApi',data,{isLoading: true, isAuth: true,isForm: true})
}
// 订单列表
export function getOrderListApi(data) {
	return request.post('/?service=App.Order.orderlistActionApi',data,{isLoading: true, isAuth: true,isForm: true})
}
// 订单详情
export function getOrderDetailsApi(data) {
	return request.post('/?service=App.Order.orderdetailGetApi',data,{isLoading: true, isAuth: true,isForm: true})
}
// 取消订单
export function cancelOrderApi(data) {
	return request.post('/?service=App.Order.cancelOrderApi',data,{isLoading: true, isAuth: true,isForm: true})
}
// 获取支付方式
export function getPayTypeListApi(data) {
	return request.post('/?service=App.Pay.GetPaymentListApi',data,{isLoading: true,isForm: true})
}